package com.koron.standard.excel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jzp
 * @since 2021/12/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExcelError {
    int rowIndex;
    int rowStep = 0;
    int collIndex;
    int collStep = 0;
    String comment;

    public ExcelError(int rowIndex, int collIndex, String comment) {
        this.rowIndex = rowIndex;
        this.collIndex = collIndex;
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "[" + rowIndex +
                ", " + rowStep +
                ", " + collIndex +
                ", " + collStep +
                "]：" + comment;
    }
}
